package com.dlc.shop.service.impl;

import cn.hutool.core.collection.CollUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dlc.shop.bean.model.ProdParameterLang;
import com.dlc.shop.dao.ProdParameterLangMapper;
import com.dlc.shop.service.ProdParameterLangService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 *
 * @author Citrus
 * @date 2021-11-02 11:26:08
 */
@Service
@AllArgsConstructor
public class ProdParameterLangServiceImpl extends ServiceImpl<ProdParameterLangMapper, ProdParameterLang> implements ProdParameterLangService {

    private final ProdParameterLangMapper prodParameterLangMapper;

    @Override
    public void insertBatch(List<ProdParameterLang> prodParameterLangList) {
        if (CollUtil.isEmpty(prodParameterLangList)) {
            return;
        }
        prodParameterLangMapper.insertBatch(prodParameterLangList);
    }

    @Override
    public void deleteBatch(List<Long> ids) {
        if (CollUtil.isEmpty(ids)) {
            return;
        }
        prodParameterLangMapper.deleteBatch(ids);
    }
}
